package catalina;

import server.base.HttpServlet;
import java.io.IOException;

/**
 * @ClassName StandardWrapper
 * @Description TODO
 * @Auth ying.xiao
 * @Date 2021/3/11
 * @Version 1.0.0
 */
public class StandardWrapper implements Wrapper {

    private HttpServlet httpServlet;

    private String url;

    public StandardWrapper(HttpServlet httpServlet, String url) {
        this.httpServlet = httpServlet;
        this.url = url;
    }


    @Override
    public void service(Request request, Response response) throws IOException {
        httpServlet.service(request,response);
    }
}
